package com.itlaobing.data;


import java.io.DataOutputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;

public class DataOutputTest1 {

    public static void main(String[] args) throws IOException {

        OutputStream out = new FileOutputStream("D:/test.data");

        DataOutputStream dot = new DataOutputStream(out);
        dot.writeByte(100);
        dot.writeShort(100);
        dot.writeInt(100);
        dot.writeLong(100);
        dot.writeFloat(100);
        dot.writeDouble(100);
        dot.writeBoolean(true);
        dot.writeChar('殇');

        dot.close();
        out.close();
    }
}
